package com.xinzhidi.web.house.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinzhidi.common.annotation.Excel;
import com.xinzhidi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;


/**
 * 住户对象 c_household
 *
 * @author cx
 * @date 2023-05-23
 */
@ApiModel(value = "住户对象")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("c_household")
public class Household extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "住户id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "小区id")
    private Long plotId;

    @ApiModelProperty(value = "楼栋id")
    private Long buildId;

    @ApiModelProperty(value = "单元号")
    @Excel(name = "单元号")
    private Long unit;

    @ApiModelProperty(value = "楼层号")
    @Excel(name = "楼层号")
    private Long floor;

    @ApiModelProperty(value = "门牌号")
    @Excel(name = "门牌号")
    private String houseNumber;

    @ApiModelProperty(value = "设置类型（1：初始设置  2：自动调控）")
    private String setType;

    @ApiModelProperty(value = "设置级别（0：小区  1：楼栋  2：单元  3：住户）")
    private String setLevel;

    @ApiModelProperty(value = "调控方法（1：手动调控  2：自动调控）")
    private String regulationMethod;

    @ApiModelProperty(value = "调控策略:1 回水温度 2 室内温度 3 供回水平均温度 4 流量 5 热量")
    private String controlStrategy;

    @ApiModelProperty(value = "方位")
    @Excel(name = "方位")
    private String orientation;

    @ApiModelProperty(value = "管道位置")
    @Excel(name = "管道位置")
    private String pipePosition;

    @ApiModelProperty(value = "采暖面积")
    @Excel(name = "采暖面积")
    private BigDecimal heatArea;

    @ApiModelProperty(value = "房间热卡号")
    @Excel(name = "房间热卡号")
    private String hotCardNumber;

    @ApiModelProperty(value = "住户姓名")
    @Excel(name = "住户姓名")
    private String userName;

    @ApiModelProperty(value = "固定电话")
    @Excel(name = "固定电话")
    private String landPhone;

    @ApiModelProperty(value = "移动电话")
    @Excel(name = "移动电话")
    private String mobilePhone;

    @ApiModelProperty(value = "供热类型")
    @Excel(name = "供热类型")
    private String heatingType;

    @ApiModelProperty(value = "瞬时热量")
    private BigDecimal thermalPower;

    @ApiModelProperty(value = "瞬时流量")
    private BigDecimal velocityFlow;

    @ApiModelProperty(value = "累计热量")
    private BigDecimal currentHeatOrCold;

    @ApiModelProperty(value = "累计流量")
    private BigDecimal totalFlow;

    @ApiModelProperty(value = "供水温度")
    private BigDecimal waterSupplyTemperature;

    @ApiModelProperty(value = "回水温度")
    private BigDecimal returnWaterTemperature;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "热量表抄表时间")
    private Date heatReadTime;

    @ApiModelProperty(value = "热量表信息接收次数")
    private Integer heatTimes;

    @ApiModelProperty(value = "阀门开度")
    private Integer valveOpen;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "阀门抄表时间")
    private Date valveReadTime;

    @ApiModelProperty(value = "阀门信息接收次数")
    private Integer valveTimes;

    @ApiModelProperty(value = "邮箱")
    @Excel(name = "邮箱")
    private String email;

    @ApiModelProperty(value = "是否供热（0是 1否）")
    @Excel(name = "是否供热")
    private Long heatingOrNot;

    @ApiModelProperty(value = "模型id")
    private String modelIds;

    @ApiModelProperty(value = "锁定标识（0：未锁定  1：已锁定  默认0）")
    private Integer lockStatus;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "删除标志（0代表存在 2代表删除）")
    @TableLogic
    private String delFlag;

    @ApiModelProperty(value = "用户类型")
    private String type;

}
